{% extends 'RpmFrontBundle::layout.html.twig' %}

{% block title %}Rpm TRACKLIST{% endblock %}

{% block content %}

<ul class="breadcrumb">
	<li><a href="{{ path('rpm_front_homepage') }}">Home</a> <span class="divider">/</span></li>
	<li><a href="{{ path('rpm_front_list') }}"> Every Editions</a> <span class="divider">/</span></li>
	<li class="active"><a href="{{ path('rpm_front_detail', { 'id': edition.id }) }}"> Details</a></li>
</ul>

<hr>

<div class="row">
	<div class="span7">

		<h2>Edition #{{ edition.edition }}</h2>

		<table class="table table-hover">
			<thead>
				<tr>
					<th>#</th>
					<th>Title</th>
					<th>Artist</th>
					<th>Type</th>
				</tr>
			</thead>
			<tbody>
				{% for m in edition.musiques %}
				<tr>
					<td>{{ loop.index }}</td>
					<td>{{ m.titre }}</td>
					<td>{{ m.artiste }}</td>
					<td>{{ m.type }}</td> 
				</tr>
				{% endfor %}
			</tbody>
		</table>

		{% if next != 0 %}
			<a class="btn btn-info" href="{{ path('rpm_front_detail', { 'id': next }) }}">&laquo; Next Edition</a>
		{% endif %}
		
		{% if previous != 0 %}
			<a class="btn btn-info" href="{{ path('rpm_front_detail', { 'id': previous }) }}">Previous Edition &raquo;</a>
		{% endif %}
		
	</div>
			
	<div class="span2">
		ESPACE PUB
	</div>
</div>
<div class="separator"></div>
<hr />
<div class="row">
	<div class="span9">
		<div id="disqus_thread"></div>
		<script type="text/javascript">
			/* * * CONFIGURATION VARIABLES: EDIT BEFORE PASTING INTO YOUR WEBPAGE * * */
			var disqus_shortname = 'rpmtracklist'; // required: replace example with your forum shortname

			/* * * DON'T EDIT BELOW THIS LINE * * */
			(function() {
				var dsq = document.createElement('script'); dsq.type = 'text/javascript'; dsq.async = true;
				dsq.src = 'http://' + disqus_shortname + '.disqus.com/embed.js';
				(document.getElementsByTagName('head')[0] || document.getElementsByTagName('body')[0]).appendChild(dsq);
			})();
		</script>
		<noscript>Please enable JavaScript to view the <a href="http://disqus.com/?ref_noscript">comments powered by Disqus.</a></noscript>
		<a href="http://disqus.com" class="dsq-brlink">comments powered by <span class="logo-disqus">Disqus</span></a>
	</div>
</div>

{% endblock %}